package com.cn.crmsystem.mapper.approveMapper;

import com.cn.crmsystem.pojo.Approve;
import com.cn.crmsystem.pojo.Returned;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReturnMapper {
	//全查
	List<Approve> selectAll(@Param("userid") Integer userid);
	//修改审核表
	int UpdateApproveReturn(Integer appid,Integer state);
	//查询data_id
	Integer SelectDataid(Integer appid);
	//删除审核表
	Integer DeleteApprove(Integer appid);
	//删除回款表
	Integer DeleteReturn(Integer returnid);
	//0的条件查询
	List<Approve> selectConditionReturn(Integer userid,Integer state);
	//1和2查询
	List<Approve> selectConditionTwoReturn(Integer userid);
}
